package com.ibm.risk.irmp.base.dict.entity;

import com.ibm.risk.irmp.base.dict.vo.BaseDictItemVo;
import com.ibm.risk.irmp.common.vo.ITreeVo;
import jakarta.persistence.*;
import lombok.Data;
import lombok.ToString;

import java.util.List;

@Data
@ToString(callSuper = true)
@Entity
@Table(name = "RI_BASE_DICT_ITEM")
public class BaseDictItem extends BaseDictItemVo implements ITreeVo {
    @OneToMany
    @OrderBy("seq")
    @JoinColumn(name = "parent_id")
    private List<BaseDictItem> children;

}
